import java.util.Scanner;

public class text_9 {
    public static void main(String[] args) {
        System.out.println("输入工资");
        Scanner sc=new Scanner(System.in);
        double a=sc.nextDouble();
        if (a<3500){
            System.out.println("不交税");
        }else if (a>=3500&&a<8000){
            double b=(a-3500)*0.05;
            System.out.println("交税："+b);
        }else if(a>=8000&&a<15000){
            double c=(a-8000)*0.1+4500*0.05;
            System.out.println("交税"+c);
        }else {
            double d=(a-15000)*0.15+7000*0.1+4500*0.05;
            System.out.println("交税"+d);
        }
    }
}
